import App from './App'
import uView from '@/uni_modules/uview-ui'
import store from './store';
import share from 'common/share.js';
import mixin from 'common/mixin.js';
import API from "common/api.js"
Vue.config.productionTip = false
Vue.prototype.$http = API
Vue.use(uView)
Vue.mixin(mixin)
Vue.mixin(share)
import mixinApp from "@/mixin/index.js"
Vue.mixin(mixinApp)
// let vuexStore = require('@/store/$u.mixin.js')

// #ifndef VUE3
import Vue from 'vue'

App.mpType = 'app'
const app = new Vue({
	...App,
	store
})
Vue.prototype.$app = app
// #ifdef MP-WEIXIN
Vue.prototype.$onLaunched = new Promise(resolve => {
    Vue.prototype.$isResolve = resolve
})
// #endif
app.$mount()
// #endif




// #ifdef VUE3
import {
	createSSRApp
} from 'vue'

export function createApp() {
	const app = createSSRApp(App)
	return {
		app,
		store
	}
}
// #endif